home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
util
/
pack
/
xfh132.lzh
/
XFH
/
src
/
libmygcc
/
gnulib
/
divsi3.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-01-16
|
214b
|
17 lines
#include "common.h"
SItype
__divsi3 (a, b)
SItype a, b;
{
unsigned SItype q, r;
int neg = (a < 0) != (b < 0);
if (a < 0) a = -a;
if (b < 0) b = -b;
divmodu (q, r, a, b);
return neg ? -q : q;
}